<template>
    <el-tag class="t-tag hover-class" v-bind="$attrs" :style="color" @click="click" @close="close">
      <slot />
    </el-tag>
</template>
<script>
export default {
  data() {
    return {};
  },
  computed:{
    color(){
      return 'background:'+this.$attrs.color
    }
  },
  methods: {
    click() {
      this.$emit("click");
    },
    close(d) {
      this.$emit("close",d);
    },
  },
};
</script>
<style lang="scss" scoped>
.t-tag{
  border: none;
}
</style>